/**
 * Layout 组件的主题配置
 */

import type { ComponentToken } from 'antd/es/layout/style';

export const layoutThemeConfig: Partial<ComponentToken> = {
  bodyBg: '#f0f2f5',
  headerBg: '#001529',
  footerBg: '#f0f2f5',
  siderBg: '#001529',
  headerHeight: 64,
  headerPadding: '0 50px' as any,
  headerColor: '#1a1a1a' as any,
  footerPadding: '24px 50px' as any,
  triggerHeight: 48,
  triggerBg: '#002140',
  triggerColor: '#ffffff',
  zeroTriggerWidth: 40,
  zeroTriggerHeight: 42,
};

export const getLayoutTheme = (
  customConfig?: Partial<ComponentToken>
): Partial<ComponentToken> => {
  return {
    ...layoutThemeConfig,
    ...customConfig,
  };
};

export type { ComponentToken as LayoutComponentToken } from 'antd/es/layout/style';

